import request from '@/utils/request';

// 套餐列表
export const packageList = params => request({
    url: '/business/package/selectList',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 套餐新增
export const packageAdd = params => request({
    url: '/business/package/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 套餐更新
export const packageUpdate = params => request({
    url: '/business/package/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 套餐删除
export const packageDel = params => request({
    url: '/business/package/delete',
    method: 'GET',
    params
});
// 套餐详情
export const packageDetail = params => request({
    url: '/business/package/getDetail',
    method: 'GET',
    params
});
// 套餐状态
export const packageStatus = params => request({
    url: '/business/package/updateStatus',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
